<template>
    <div class="companyIntroductionMobile">
        <div class="companyIntroductionMobile-top">
            <div class="companyIntroductionMobile-top-l">
                <div class="companyIntroductionMobile-top-l-title wow fadeInDown" style="margin-right: 35px;"
                    data-wow-delay=".3s" data-wow-duration="0.4s">
                    做中国知名企业
                </div>
                <div class="companyIntroductionMobile-top-l-title wow fadeInDown" style="margin-left: 35px;"
                    data-wow-delay=".3s" data-wow-duration="0.4s">
                    数字化服务集团
                </div>
                <div class="companyIntroductionMobile-top-l-details wow fadeInDown" data-wow-delay=".3s"
                    data-wow-duration="0.8s">
                    凝聚中小企业向上的力量，驱动企业数字化转型升级
                </div>
            </div>
        </div>
        <div class="companyIntroductionMobile-content">
            <div class="content-introduction">
                公司简介
            </div>
            <div class="content-desc">
                “品达” </br>
                代表着我们最真挚的心声
            </div>
            <div class="content-slogan">
                品质保障 助企腾达
            </div>
            <div class="content-text">
                杭州品达企服科技（集团）有限公司（以下简称：品达集团）成立于2018年，总部设立在美丽的杭州钱塘江畔。</br>
                <div style="width: 100%;height: 15px;"></div>
                合伙人团队覆盖全国200多个城市，1200+合作伙伴，帮助超过20000家企业进行“互联网+视播”的转型升级，有超500位团队服务人员为用户提供优质服务。</br>
                <div style="width: 100%;height: 15px;"></div>
                今后，品达集团将持续“以科技成就梦想，以创新赢在未来”为锚点，与合作伙伴分享成功，共创辉煌。
            </div>
            <div class="content-child flex_spa">
                <div class="content-child-data">
                    <div class="content-child-data-icon"><i class="iconfont icon-gongsi"></i></div>
                    <div class="content-child-data-num">2家分公司</div>
                    <div class="content-child-data-details">河北 / 重庆</div>
                </div>
                <div class="content-child-data">
                    <div class="content-child-data-icon"><i class="iconfont icon-yunyingzhongxin"></i></div>
                    <div class="content-child-data-num">4家运营中心</div>
                    <div class="content-child-data-details">石家庄 / 山东 / 沧州 / 长沙</div>
                </div>
            </div>
            <div class="content-swiper">
                <div class="content-swiper-title">
                    愿景和使命
                </div>
                <div class="content-swiper-box">
                    <div class="swiper-container">
                        <div class="swiper-wrapper ">
                            <div class="swiper-slide " v-for="(item, idx) of visionMissionList" :key="idx">
                                <div class="swiper-slide-title">{{ item.title }}</div>
                                <div class="swiper-slide-details">{{ item.details }}</div>
                            </div>
                        </div>
                    </div>
                    <div class="swiper-wrapper-operation flex_bet">
                        <div class="swiper-button-next"></div>
                        <div class="swiper-pagination"></div>
                        <div class="swiper-button-prev"></div>
                    </div>
                </div>
            </div>
            <div class="content-scale ">
                <div class="content-scale-head wow slideInDown" data-wow-delay=".3s" data-wow-duration="0.4s">
                    品达规模
                </div>
                <div class="content-scale-map ">
                    <div id="scaleMap"></div>
                    <div class="content-scale-map-data">
                        <div class="content-scale-map-data-title">{{ addressInfo.company }}</div>
                        <div class="content-scale-map-data-logo">
                            <img v-if="addressInfo.id == 0" src="https://static.pdwl.net/jituan/images/aboutUs/icon15.png"
                                alt="" srcset="">
                            <img v-if="addressInfo.id == 1" src="https://static.pdwl.net/jituan/images/aboutUs/icon22.png"
                                alt="" srcset="">
                            <img v-if="addressInfo.id == 2" src="https://static.pdwl.net/jituan/images/aboutUs/icon23.png"
                                alt="" srcset="">
                        </div>
                        <div class="content-scale-map-data-phone">服务电话：{{ addressInfo.phone }}</div>
                        <div class="content-scale-map-data-address flex_start">
                            <div>公司地址：</div>
                            <div>
                                {{ addressInfo.address }}
                            </div>
                        </div>
                        <div class="content-scale-map-data-concern flex_start">
                            <div>微信关注：</div>
                            <div>
                                <img style="width: 100px;height: 100px;background-size: 100% 100%;" :src="addressInfo.code"
                                    alt="" srcset="">
                            </div>
                        </div>
                    </div>
                    <div class="content-scale-glory">

                        <div class="content-scale-glory-head wow slideInDown" data-wow-delay=".3s" data-wow-duration="0.4s">
                            品达荣耀
                        </div>
                        <div class="content-scale-glory-box ">
                            <div class="flex_spa content-scale-glory-box-top">
                                <div class="content-scale-glory-box-top-content">
                                    <div>40+</div>
                                    <div>计算机软件著作和授权专利</div>
                                </div>
                                <div class="content-scale-glory-box-top-content  glory-bg">
                                    <div>60+</div>
                                    <div>商标注册</div>
                                </div>
                            </div>
                            <div class="swiper-container1">
                                <div class="swiper-wrapper">
                                    <div class="swiper-slide flex_cen" v-for="(item, idx) of gloryList" :key="idx">
                                        <img :src="item" alt="" srcset="">
                                    </div>
                                </div>
                            </div>
                            <div class="content-scale-glory-box-comments">
                                （以上数据的统计对象包含集团公司和所有分公司及其关联公司）
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            <div class="content-partner">
                <div class="content-partner-title wow slideInDown" data-wow-delay=".3s" data-wow-duration="0.4s">合作伙伴</div>
                <div class="content-partner-data flex_bet flex_wrap">
                    <div class="content-partner-data-list flex_cen" v-for="(item, idx) of partnerList" :key="idx">
                        <img class="imgLogo" :src="item.img" alt="" srcset="">
                    </div>
                </div>
            </div>
        </div>
        <Footer desc="持久续航、超低成本直播间" desc1="开启数字化直播新时代"></Footer>
    </div>
</template>
<script>
import Footer from '@/components/footer/index1.vue'
import Swiper from 'swiper'
import 'swiper/dist/css/swiper.min.css'
let map;
export default {
    components: { Footer },
    data() {
        return {
            partnerList: [
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    content: '腾讯云',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon30.png',
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon31.png',
                    content: '阿里云'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon32.png',
                    content: '华为云'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon33.png',
                    content: '天翼云'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon41.png',
                    content: 'github'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon40.png',
                    content: '抖音开放平台'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon35.png',
                    content: '建设银行'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon37.png',
                    content: '天府银行'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon36.png',
                    content: '河北数字经济联合会'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon39.png',
                    content: '河北冀商会'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon34.png',
                    content: '百捷集团'
                },
                {
                    bgImg: 'https://static.pdwl.net/jituan/images/aboutUs/icon14.png',
                    img: 'https://static.pdwl.net/jituan/images/aboutUs/icon38.png',
                    content: '盘古集团'
                },
            ],
            visionMissionList: [
                {
                    title: '我们的使命',
                    details: '为实现中国企业数字化升级而不懈奋斗'
                },
                {
                    title: '我们的愿景',
                    details: '做国内一流企业数字化服务集团企业'
                },
                {
                    title: '我们的价值观',
                    details: '人才为本 / 创新驱动 / 服务为先 / 合作共赢'
                },
                {
                    title: '企业精神',
                    details: '“四求精神”— 求实 / 求新 / 求质 / 求效'
                },
                {
                    title: '经营理念',
                    details: '诚信为本 / 服务至上 / 精进卓越 / 合作创新'
                }
            ],
            addressInfo: {
                address: '浙江省杭州市萧山区亨得利闽商大厦606室',
                phone: '15033110058',
                company: '杭州品达企服科技（集团）有限公司',
                id: 0,
                code: 'https://static.pdwl.net/jituan/images/code/杭州品达企服科技（集团）有限公司.jpg',
            },
            addressInfoList: [
                {
                    company: '杭州品达企服科技（集团）有限公司',
                    phone: '15033110058',
                    id: 0,
                    lng: 120.260899,
                    lat: 30.231178,
                    address: '浙江省杭州市萧山区亨得利闽商大厦606室',
                    code: 'https://static.pdwl.net/jituan/images/code/杭州品达企服科技（集团）有限公司.jpg'
                },
                {
                    company: '河北牛视科技有限公司',
                    id: 1,
                    lng: 114.487788,
                    lat: 38.002205,
                    phone: '18032803270',
                    address: '河北省石家庄市塔坛国际5号写字楼1510室',
                    code: 'https://static.pdwl.net/jituan/images/code/河北牛视科技有限公司.jpg'
                },
                {
                    company: '重庆牛视网科技有限公司',
                    id: 1,
                    lng: 106.461042,
                    lat: 29.55421,
                    phone: '18523062121',
                    address: '重庆市沙坪坝区三峡广场龙湖光年2号楼17-8',
                    code: 'https://static.pdwl.net/jituan/images/code/重庆牛视网科技有限公司.jpg'
                },
                {
                    company: '德州汇泽网络科技有限公司',
                    id: 2,
                    lng: 116.305478,
                    lat: 37.45856,
                    phone: '15335345858',
                    address: '山东省德州市德城区天衢中路1369号',
                    code: 'https://static.pdwl.net/jituan/images/code/德州汇泽网络科技有限公司.jpg'
                },
                {
                    company: '湖南品达企服科技有限公司',
                    phone: '18670025062 ',
                    id: 2,
                    lng: 112.999006,
                    lat: 28.194057,
                    address: '湖南省长沙市芙蓉区五一大道湘域中央1栋717-720',
                    code: 'https://static.pdwl.net/jituan/images/code/湖南品达企服科技有限公司.jpg'
                },
                {
                    company: '安徽数搜网络科技有限公司',
                    id: 2,
                    lng: 115.799612,
                    lat: 32.890952,
                    phone: '18226343786',
                    address: '安徽省阜阳市颍州区怡和城市广场A座1203室',
                    code: 'https://static.pdwl.net/jituan/images/code/安徽数搜网络科技有限公司.jpg'
                },
                {
                    company: '河北品达网络科技有限公司',
                    id: 2,
                    lng: 114.478099,
                    lat: 38.018874,
                    phone: '18632046009',
                    address: '石家庄市桥西区一江大厦A座1101',
                    code: 'https://static.pdwl.net/jituan/images/code/河北品达网络科技有限公司.jpg'
                },

            ],
            gloryList: [
                'https://static.pdwl.net/jituan/images/aboutUs/icon.png',
                'https://static.pdwl.net/jituan/images/aboutUs/icon1.png',
                'https://static.pdwl.net/jituan/images/aboutUs/icon2.png',
                'https://static.pdwl.net/jituan/images/aboutUs/icon3.png',
                'https://static.pdwl.net/jituan/images/aboutUs/icon4.png',
                'https://static.pdwl.net/jituan/images/aboutUs/icon5.png',
            ],
        }
    },
    mounted() {
        this.initSwiper()
        this.initMap()
    },
    methods: {
        initSwiper() {
            new Swiper('.swiper-container', {
                navigation: {
                    nextEl: '.swiper-button-next',
                    prevEl: '.swiper-button-prev'
                },
                // thumbs: {
                //     swiper: swiper,
                // },
                parallax: true,
                loop: true,
                pagination: {
                    el: ".swiper-pagination",
                    type: "fraction",
                },
                autoplay: {
                    delay: 2000,//时间 毫秒
                    disableOnInteraction: false,//用户操作之后是否停止自动轮播默认true
                    pauseOnMouseEnter: true,
                },
                // grabCursor: false,
            })
            let mySwiper = new Swiper('.swiper-container1', {
                loop: true,
                autoplay: {
                    delay: 1000,//时间 毫秒
                    disableOnInteraction: false,//用户操作之后是否停止自动轮播默认true
                    pauseOnMouseEnter: true,
                },
                slidesPerView: 4,
                spaceBetween: 0,
                centeredSlides: true,
                loop: true,
                grabCursor: true,
            })
            mySwiper.el.onmouseover = function () {
                mySwiper.autoplay.stop();
            }
            mySwiper.el.onmouseout = function () {
                mySwiper.autoplay.start();
            }
        },
        initMap() {
            map = new AMap.Map('scaleMap', {
                resizeEnable: true,
                zoom: 13,
                // viewMode: '3D',
                rotateEnable: true,
                pitchEnable: true,
                // pitch: 50,
                // rotation: -15,
            });
            this.$nextTick(() => {
                this.addMapMarker()
            })
        },
        addMapMarker() {
            let that = this
            let markers = [];
            let img = 'https://static.pdwl.net/jituan/images/marker.png'
            that.addressInfoList.forEach((item, idx) => {
                if (item.lng && item.lat) {
                    let content = `<div style="text-align: center;">
                        <div style=" padding: 3px 20px;
                            border-radius: 4px;
                            background: #0000008f;
                            font-size:14px;
                            color: #fff;
                            white-space: nowrap;margin-bottom:5px">
                            ${item.company}
                        </div>
                        <div style="width:20px;margin:0 auto">
                            <img style="width:20px;height:30px" src="${img}"/>
                     </div>
                    </div>`
                    let marker = new AMap.Marker({
                        position: [item.lng, item.lat],
                        direction: 'top',
                        offset: new AMap.Pixel(-130, 0),
                        content: content,
                        extData: {
                            id: idx + 1
                        }
                    });
                    marker.setExtData(item);
                    markers.push(marker);
                    marker.on('click', function (e) {
                        let data = e.target.getExtData()
                        that.getAddress(data)
                    });
                }

            })
            map.add(markers)
            map.setFitView();
        },
        getAddress(pos) {
            let that = this
            let geocoder = new AMap.Geocoder({});
            geocoder.getAddress([pos.lng, pos.lat], (status, result) => {
                console.log(result, 'pos', status)
                if (status === "complete" && result.info === "OK") {
                    map.setZoomAndCenter(13, [pos.lng, pos.lat])
                    that.addressInfo.address = result.regeocode.formattedAddress
                    that.addressInfo.phone = pos.phone
                    that.addressInfo.company = pos.company
                    that.addressInfo.code = pos.code
                    that.addressInfo.id = pos.id
                }
            });
        }
    }
}
</script>
<style lang="scss" scoped>
.companyIntroductionMobile {
    &-top {

        background-image: url('https://static.pdwl.net/jituan/images/aboutUs/icon18.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100% 100%;
        height: 750px;
        width: 100%;
        position: relative;

        &-l {
            position: absolute;
            text-align: center;
            width: 100%;
            top: 264px;

            &-title {
                font-size: 70px;
                font-weight: bold;
                color: #FFFFFF;
            }

            &-details {
                font-size: 24px;
                color: #FFFFFF;
                line-height: 16px;
                margin-top: 40px;
            }
        }
    }

    &-content {
        .content-introduction {
            text-align: center;
            font-size: 48px;
            font-weight: bold;
            color: #121212;
            line-height: 28px;
            margin: 100px 0 40px;
        }

        .content-slogan {
            background: linear-gradient(270deg, #026DF4 30%, #5DD4A0 100%);
            -webkit-background-clip: text;
            text-align: center;
            -webkit-text-fill-color: transparent;
            margin: 12px 0 40px;

        }

        .content-desc {
            text-align: center;
            font-size: 32px;
            font-family: Microsoft YaHei-Bold, Microsoft YaHei;
            font-weight: bold;
            color: #121212;
            line-height: 40px;
        }

        .content-text {
            padding: 0 40px;
            font-size: 28px;
            font-weight: 400;
            color: #484848;
            line-height: 44px;
        }

        .content-child {
            margin: 40px 0 100px;

            &-data {
                text-align: center;

                &-icon {
                    i {
                        font-size: 60px;
                        font-weight: bold;

                    }
                }

                &-num {
                    font-size: 30px;
                    font-weight: bold;
                    color: #121212;
                    line-height: 40px;
                    margin: 20px 0;
                }

                &-details {
                    font-size: 26px;
                    font-family: Microsoft YaHei-Regular, Microsoft YaHei;
                    font-weight: 400;
                    color: #484848;
                    line-height: 32px;
                }
            }
        }

        .content-swiper {
            background-image: url('../../assets/image/1.png');
            background-repeat: no-repeat;
            background-position: center;
            background-size: 100% 100%;
            height: 606px;
            width: 100%;
            position: relative;

            &-title {
                padding-top: 95px;
                text-align: center;
                font-size: 48px;
                font-family: Microsoft YaHei-Bold, Microsoft YaHei;
                font-weight: bold;
                color: #FFFFFF;
                line-height: 28px;
            }

            &-box {
                background-image: url('../../assets/image/2.png');
                background-repeat: no-repeat;
                background-position: center;
                background-size: 100% 100%;
                height: 257px;
                width: 90%;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);

                .swiper-container {
                    width: 100%;
                    height: 100%;
                    position: relative;

                    .swiper-wrapper {
                        width: 100%;
                        height: 100%;
                    }

                    .swiper-button-next {
                        color: #fff !important;
                        position: absolute;
                        bottom: 0;
                    }

                    .swiper-slide {
                        text-align: center;
                        font-size: 15px;
                        position: relative;
                        width: inherit;
                        top: 50%;
                        transform: translateY(-25%);

                        &-title {
                            color: #fff;
                            text-overflow: ellipsis;
                            font-size: 36px;
                            font-family: Microsoft YaHei-Bold, Microsoft YaHei;
                            font-weight: bold;
                            color: #FFFFFF;
                            line-height: 26px;
                            width: 100%;
                            position: relative;
                            margin-bottom: 65px;

                            &::before {
                                content: '';
                                position: absolute;
                                bottom: -35px;
                                width: 60px;
                                height: 4px;
                                background: linear-gradient(90deg, #006FFF 0%, #62DEA6 100%);
                                left: 50%;
                                transform: translateX(-50%);
                            }
                        }

                        &-details {
                            font-size: 28px;
                            font-weight: 400;
                            color: #FFFFFF;
                            line-height: 40px;
                        }
                    }
                }
            }
        }

        .swiper-wrapper-operation {
            position: relative;
            width: 90%;
            margin: 50px auto 0;
            color: #fff;
            font-size: 40px;

            .swiper-pagination {
                font-size: 15px;
                height: 24px;
                font-size: 30px;
            }
        }

        .content-scale {
            width: 100%;
            height: 100%;
            margin-top: 80px;

            &-head {
                text-align: center;
                font-size: 48px;
                font-weight: bold;
                line-height: 28px;
                color: #121212;
            }

            &-map {
                width: 100%;
                margin: 50px auto 0;

                &-data {
                    width: 510px;
                    height: 500px;
                    padding: 0 51px;

                    &-title {
                        margin-top: 36px;
                        font-size: 24px;
                        font-weight: bold;
                        color: #000;
                        line-height: 28px;
                    }

                    &-logo {
                        width: 80px;
                        height: 24px;
                        margin: 14px 0 30px;

                        img {
                            width: 100%;
                            height: 100%;
                            background-size: 100% 100%;
                        }
                    }

                    &-phone {
                        font-size: 14px;
                    }

                    &-address {
                        font-size: 14px;
                        margin: 16px 0;

                        div:first-child {
                            white-space: nowrap;
                            align-self: start;
                        }
                    }

                    &-concern {
                        font-size: 14px;

                        div:first-child {
                            white-space: nowrap;
                            align-self: start;
                        }

                        div:last-child {
                            width: 100px;
                            height: 100px;
                            background: #FFFFFF;
                        }
                    }
                }
            }

            &-glory {
                background-image: url('../../assets/image/3.png');
                background-repeat: no-repeat;
                background-position: center;
                background-size: 100% 100%;
                height: 785px;
                width: 100%;

                &-head {
                    font-size: 48px;
                    font-weight: bold;
                    line-height: 28px;
                    text-align: center;
                    color: #fff;
                    padding: 100px 0 60px;
                }

                &-box {
                    margin-bottom: 56px;

                    &-top {
                        &-content {
                            background-image: url('https://static.pdwl.net/jituan/images/aboutUs/icon20.png');
                            background-repeat: no-repeat;
                            background-position: center;
                            background-size: 100% 100%;
                            width: 275px;
                            height: 140px;
                            position: relative;
                            text-align: center;
                            padding: 20px;

                            div:first-child {
                                width: 68px;
                                height: 68px;
                                border: 1px solid #FFFFFF;
                                text-align: center;
                                line-height: 68px;
                                border-radius: 50%;
                                margin: 0px auto 9px;
                                font-size: 30px;
                                font-weight: 400;
                                color: #FFFFFF;
                            }

                            div:last-child {
                                font-size: 18px;
                                color: #FFFFFF;
                                font-weight: 300;
                                white-space: nowrap;
                            }
                        }

                        .glory-bg {
                            background-image: url('https://static.pdwl.net/jituan/images/aboutUs/icon19.png');
                            margin-left: 30px;
                        }

                        &:last-child {
                            margin-right: 0;
                        }
                    }

                    &-comments {
                        font-size: 18px;
                        color: #FFFFFF;
                        line-height: 16px;
                        text-align: center;
                    }
                }
            }

            #scaleMap {
                width: 670px;
                height: 400px;
                background: #FFFFFF;
                margin: 0 auto;
                border-radius: 20px;
                position: relative;
            }
        }
    }

    .swiper-container1 {
        width: 95%;
        overflow: hidden;
        margin: 40px auto 20px;

        .swiper-wrapper {
            .swiper-slide {
                width: 170px;
                padding: 0 0px;

                img {
                    width: 170px;
                    height: 230px;
                    margin-left: 10px;
                    background-size: 100% 100%;
                }

            }
        }
    }

    .content-partner {  
        margin: 100px 0; 
        padding:0 20px;
        &-title {
            font-size: 48px;
            font-weight: bold;
            line-height: 28px;
            text-align: center;
        }

        &-data {
            width: 100%;
            margin: 60px auto 0;
            &-list {
                width: 210px;
                height: 74px;
                margin-bottom: 20px;
                position: relative;
                background-color: #E9E9E9;
                
                .imgLogo {
                    width: 170px;
                    height: 54px;
                    white-space: nowrap;
                }
            }
        }
    }
}</style>
